package com.limingru.online_class.mapper;

import com.limingru.online_class.domain.Episode;
import com.limingru.online_class.domain.VideoOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoOrderMapper {
    VideoOrder findOrderByVideoIdAndUserId(@Param("videoId") Integer videoId, @Param("userId") Integer userId);

    int save(VideoOrder videoOrder);

    List<VideoOrder> findOrdersByUserId(@Param("userId") Integer userId);

    int removeOrderByIdAndUserId(@Param("orderId") Integer orderId, @Param("userId") Integer userId);
}
